package com.lgj.demo0812.singleton;

/**
 * @author lizy51
 * @date 2022-09-07 14:47
 * des: 饿汉式开始的时候就加载，不使用也会加载，浪费内存
 */
public class Hungry {

    private byte[] data1 = new byte[1024*1024];

    private Hungry(){
    }

    private  final static Hungry Hurry = new Hungry();

    private static Hungry getInstance(){
        return Hurry;
    }
}
